<div ng-controller="HongbaoCtrl" ng-init="addAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/hongbao/list">{{hongbao_data.title?hongbao_data.title:'语音红包'}}</a></li>
        <li class="active">
            {{!huodong_id?"创建":"edit"|translate}}
        </li>
    </ul>
    <form name="Tradeform" class="sui-form form-horizontal" novalidate ng-submit="hongbaoAdd()">
        <div class="stepbody">
            <div class="control-group">
                <label class="control-label v-top">
                    语音内容：
                </label>
                <div class="controls">
                    <input id="speech_content" type="text" name="speech_content" ng-model="hongbao_data.speech_content" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">
                    起始时间：
                </label>
                <div class="controls">
                    <input id="start_time" ng-model="hongbao_data.start_time" datetimepicker name="start_time" required>
                    <span class="float_left" style="width:10px;">至</span>
                    <input id="end_time" ng-model="hongbao_data.end_time" datetimepicker name="end_time" required>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">
                    赠送方式：
                </label>
                <div class="controls">
                    <label data-toggle="radio" class="radio-pretty inline {{hongbao_data.give_way==1?'checked':''}}">
                        <input type="radio" name="radio" ng-model="hongbao_data.give_way" value="1" /><span>均价赠</span>
                    </label>
                    <label data-toggle="radio" class="radio-pretty inline {{hongbao_data.give_way==2?'checked':''}}">
                        <input type="radio" name="radio" ng-model="hongbao_data.give_way" value="2" /><span>随机赠</span>
                    </label>
                </div>
            </div>
            
            <div class="control-group">
                <label class="control-label v-top">
                    红包金额：
                </label>
                <div class="controls">
                    <input name="red_envelope" ng-model="hongbao_data.red_envelope" value="1" required> 元
                </div>
            </div>

            <div class="control-group">
                <label class="control-label v-top">
                    红包数量：
                </label>
                <div class="controls">
                    <input name="red_number" ng-model="hongbao_data.red_number" value="1" required> 次
                </div>
            </div>
        </div>
        <div>
            <button type="submit" class="sui-btn btn-primary">
                {{'保存'|translate}}
            </button>
        </div>
    </form>
</div>